﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Coldairarrow.Entity.DTO
{
    /// <summary>
    /// 拆包传值
    /// </summary>
    public class UnpackingDataDTO
    {
        /// <summary>
        /// 要拆包的包二维码
        /// </summary>
        public string packqrcode { get; set; }

        /// <summary>
        /// 要拆出的成品数量
        /// </summary>
        public Double? Nums { get; set; }

        /// <summary>
        /// 成品id(list集合)
        /// </summary>
        public List<PackListDetailDTO> jobbookingdata { get; set; }

        /// <summary>
        /// 合并包二维码
        /// </summary>
        public string mergepackqrcode { get; set; }
    }

    /// <summary>
    /// 获取包明细信息
    /// </summary>
    public class PackListDetailDTO
    {
        public String Id { get; set; }

        /// <summary>
        /// 打包ID
        /// </summary>
        public String PackId { get; set; }

        /// <summary>
        /// 成品表ID
        /// </summary>
        public String JobBookingId { get; set; }

        /// <summary>
        /// 创建人ID
        /// </summary>
        public String CreatorId { get; set; }

        /// <summary>
        /// 删除状态：0=未删除；1＝已删除；
        /// </summary>
        public Boolean? Deleted { get; set; }

        /// <summary>
        /// 创建人名称
        /// </summary>
        public String CreatorName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime? CreatorTime { get; set; }

        /// <summary>
        /// 是否新旧：0-旧；1-新
        /// </summary>
        public int? OldOrNew { get; set; }

        /// <summary>
        /// 物料Id
        /// </summary>
        public String MaterialId { get; set; }

        /// <summary>
        /// 物料编码
        /// </summary>
        public String MaterialCode { get; set; }

        /// <summary>
        /// 物料规格
        /// </summary>
        public String MaterialSpec { get; set; }

        /// <summary>
        /// 物料名称
        /// </summary>
        public String MaterialName { get; set; }

        /// <summary>
        /// 是否序列号
        /// </summary>
        public Boolean? IsNumber { get; set; }

        /// <summary>
        /// 是否数量统计
        /// </summary>
        public Boolean? IsQuantity { get; set; }

        /// <summary>
        /// 流水号
        /// </summary>
        public String SerialNumber { get; set; }

        /// <summary>
        /// 包内物料数量
        /// </summary>
        public double? Nums { get; set; }

    }

    public class UnpackingPackDTO
    {
        /// <summary>
        /// 要拆包的包二维码
        /// </summary>
        public string packqrcode { get; set; }

        /// <summary>
        /// 拆包的明细
        /// </summary>
        public List<UnpackingMaterialDTO> UnpackingMaterial { get; set; }
    }

    public class UnpackingMaterialDTO
    {
        /// <summary>
        /// 物料Id
        /// </summary>
        public string MaterialId { get; set; }

        /// <summary>
        /// 拆出数量
        /// </summary>
        public double? MaterNums { get; set; }

    }

}
